/*
 * Created on Jun 19, 2004
 *
 * Vectrics Inc.  GNU Public License.
 */
package org.vectrics.recruiter.job;

import java.util.Date;
import java.util.List;

import org.vectrics.domain.Domain;
import org.vectrics.recruiter.RecruitServiceLocator;



/**
 * @author mmoore
 */
public class JobAgentBatchSelecter {
	private static JobAgentBatchSelecter instance = null;
	
	/**
	 * 
	 */
	private JobAgentBatchSelecter() {
		super();
	}
	
	public static JobAgentBatchSelecter getInstance() {
		if (instance == null) 
			instance = new JobAgentBatchSelecter(); 
		return(instance);
	}
	
	public List getJobAgentBatch(Domain domain, Date expirationTime) {
		List agentList = null;
		Date date = new Date();
		agentList = RecruitServiceLocator.getRecruitUserService().findExpiredJobAgents(domain, expirationTime, 2000);
		return(agentList);
	}
	
	

}
